package 链表;

/**
 * @Project: Data Structure and Algorithms
 * @Package: 链表.链表基础
 * @ClassName: ListNode
 * @Author: zhouyihe
 * @Date: 2025/12/3 20:36
 * @Description: 链表-节点类
 */
public class ListNode {
    public int val;
    public ListNode next;

    ListNode() {
    }

    public ListNode(int val) {
        this.val = val;
    }

    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }
}
